package com.lakeworks.common.enums.ticket;

import java.util.Objects;

public enum NodeType {

    QUANTITY_MISMATCH_ONE("数量不符（联系不上，核实不一致，洗前沟通）",1,1000l),

    QUANTITY_MISMATCH_TWO("数量不符（已知悉）",2,1001l),

    QUANTITY_MISMATCH_THREE("数量不符（联系不上第一次）",3,1017l),

    QUANTITY_MISMATCH_FOUR("数量不符（联系不上第二次）",4,1018l),

    QUANTITY_MISMATCH_FIVE("数量不符（联系不上第三次）",5,1019l),

    WASH_AFTER_SALE_ONE("洗涤售后（已处理好，处理不好）",1,1002l),

    WASH_AFTER_SALE_TWO("洗涤售后（可以处理，处理不好）",2,1003l),

    LOSE_LESS_ONE("丢件少件（已知悉）",1,1004l),

    URGENT_ORDER_ONE("加急单（可以出厂，无法出厂）",1,1005l),

    URGENT_ORDER_TWO("加急单（已知悉）",2,1006l),

    NOTED_INSPECTION_ONE("备注排查（已知悉，平台ce协助）",1,1007l),

    EXPRESS_DUTY_ONE("物流责任跟进（上传资料）",1,1008l),

    ORDER_TIMEOUT_WARNING_ONE("订单超时预警（反馈）",1,1009l),

    ORDEREDITING_ONE("订单修改（已知悉）",1,1010l),

    CATEGORY_MISMATCH_ONE("品类不符（已知悉）",1,1011l),

    FINISHED("已完结",1,1012l),

    MAJOR_RISK_ONE("重大风险（联系不上，洗前沟通）",1,1020l);



    private final String name;

    private final Integer no;

    private final Long value;

    NodeType(String name,Integer no, Long value) {
        this.name = name;
        this.no = no;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public Integer getNo() {
        return no;
    }

    public Long getValue() {
        return value;
    }


    public boolean equals(Long nodeId){
        if(nodeId != null){
            return Objects.equals(this.getValue(), nodeId);
        }
        return false;
    }
}
